From: Florian Müllner Date: Wed, 15 Nov 2023 12:53:38 +0000 (+0100) Subject: st/scroll-view: Deprecate {v,h}scroll properties X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~294 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b1cfe1732d366d45574973002e5cb810f0feb396;p=gnome-shell.git st/scroll-view: Deprecate {v,h}scroll properties We have better replacements now, so we'll eventually want to stop exposing the internal scroll bar children. Part-of: --- diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index 2a2f19d38..e43d1cd1c 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -882,7 +882,7 @@ st_scroll_view_class_init (StScrollViewClass *klass) "StScrollBar", "Horizontal scroll indicator", ST_TYPE_SCROLL_BAR, - ST_PARAM_READABLE); + ST_PARAM_READABLE | G_PARAM_DEPRECATED); /** * StScrollView:vscroll: @@ -894,7 +894,7 @@ st_scroll_view_class_init (StScrollViewClass *klass) "StScrollBar", "Vertical scroll indicator", ST_TYPE_SCROLL_BAR, - ST_PARAM_READABLE); + ST_PARAM_READABLE | G_PARAM_DEPRECATED); /** * StScrollView:hadjustment: diff --git a/src/st/st-scroll-view.h b/src/st/st-scroll-view.h index 9d300a402..64340fbd5 100644 --- a/src/st/st-scroll-view.h +++ b/src/st/st-scroll-view.h @@ -53,7 +53,9 @@ StScrollable *st_scroll_view_get_child (StScrollView *scroll); void st_scroll_view_set_child (StScrollView *scroll, StScrollable *child); +G_DEPRECATED ClutterActor *st_scroll_view_get_hscroll_bar (StScrollView *scroll); +G_DEPRECATED ClutterActor *st_scroll_view_get_vscroll_bar (StScrollView *scroll); StAdjustment *st_scroll_view_get_hadjustment (StScrollView *scroll);